<?php 
function addGroupMenu(){
	require 'dbconnect.php';
	$result = mysql_query("SELECT * FROM groups");
	
	while($row = mysql_fetch_array($result)){
		echo "<option value=\"".$row['id']."\" >".$row['groupname']."</option>";
	}
}
?>
